package com.yq.bdm.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yq.bdm.dao.RoleInfoDao;
import com.yq.bdm.entity.RoleInfoEntity;
import com.yq.bdm.service.RoleInfoService;



@Service("roleInfoService")
public class RoleInfoServiceImpl implements RoleInfoService {
	@Autowired
	private RoleInfoDao roleInfoDao;
	
	@Override
	public RoleInfoEntity queryObject(Long id){
		return roleInfoDao.queryObject(id);
	}
	
	@Override
	public List<RoleInfoEntity> queryList(Map<String, Object> map){
		return roleInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return roleInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(RoleInfoEntity roleInfo){
		roleInfoDao.save(roleInfo);
	}
	
	@Override
	public void update(RoleInfoEntity roleInfo){
		roleInfoDao.update(roleInfo);
	}
	
	@Override
	public void delete(Long id){
		roleInfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		roleInfoDao.deleteBatch(ids);
	}
	
	@Override
	public void deleteBatchByRoleId(Long[] roleIds){
		roleInfoDao.deleteBatchByRoleId(roleIds);
	}
	
	@Override
	public RoleInfoEntity queryObjectByRoleId(Long roleId){
		return roleInfoDao.queryObjectByRoleId(roleId);
	}
}
